package com.hyt.it.ogt.ks.service;

import java.math.BigDecimal;
import java.util.List;

import com.hyt.it.ogt.ks.feign.model.PaperDataVO;
import com.hyt.it.ogt.ks.model.entity.CandidatePaper;

public interface IScoreService {

    //void calcScoreByCandidate(String examId, String candidateId, boolean isBackup, Map<String, String> map);
    void calcScoreByCandidate(String examId, String candidateId, List<PaperDataVO> paperDataList, boolean isBackup);

    /**
     * 答案表统分
     * @param examId
     * @param candidateId
     * @param paperDataList
     * @param isBackUp
     */
    void calcObjectiveCandidateAnswerList(String examId, String candidateId, List<CandidatePaper> candidatePaperList, List<PaperDataVO> paperDataList, Integer isBackUp);

    /**
     * 获取考生试卷得分
     * @param examId
     * @param candidateId
     * @param paperId
     * @param paperVersion
     * @param isBackUp
     * @return
     */
    BigDecimal getCandidatePaperObjectScore(String examId, String candidateId, String paperId, String paperVersion, Integer isBackUp);

    /**
     * 获取考生总分
     * @param examId
     * @param candidateId
     * @param isBackUp
     * @return
     */
    BigDecimal getCandidateObjectScore(String examId, String candidateId, Integer isBackUp);
}
